<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>技术沙龙</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="assets/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="assets/css/admin.css">
  <script src="assets/js/layDate-v5.0.9/laydate.js"></script>
  <!--[if lt IE 9]>
      <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
      <script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
      <script src="assets/js/polyfill/rem.min.js"></script>
      <script src="assets/js/polyfill/respond.min.js"></script>
      <script src="assets/js/amazeui.legacy.js"></script>
  <![endif]-->

  <!--[if (gte IE 9)|!(IE)]><!-->
      <script src="assets/js/jquery.min.js"></script>
      <script src="assets/js/amazeui.min.js"></script>
  <!--<![endif]-->
  <script src="assets/js/app.js"></script>
  <script type="text/javascript">
    $(document).ready(function() {
      attach_onload();
    });
  </script>
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请升级浏览器以获得更好的体验！</p>
<![endif]-->

<header class="am-topbar admin-header">
  <div class="am-topbar-brand" id="div_header"></div>

  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
          data-am-collapse="{target: '#topbar-collapse'}">
    <span class="am-sr-only">导航切换</span>
    <span class="am-icon-bars"></span>
  </button>

  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
      <li style="display: none;"><a href="#"><span class="am-icon-user"></span>&nbsp;<span id="full-name-text">&nbsp;</span></a></li>
    </ul>
  </div>
</header>

<div class="am-cf admin-main">

  <!-- content start -->
  <div class="admin-content">
    <div class="am-cf am-padding">
      <div class="am-fl am-cf" id="div_page_title">
        <strong class="am-text-primary am-text-lg">附件</strong>&nbsp;/&nbsp;<small><span id="sp_course_title"></span></small>
      </div>
    </div>

    <hr/>

    <div class="am-g">
      <div class="am-u-sm-12 am-u-md-4 am-u-md-push-8" style="display: none;">
        <div class="am-panel am-panel-default">
          <div class="am-panel-bd">
            <div class="am-g">
            </div>
          </div>
        </div>

        <div class="am-panel am-panel-default">
          <div class="am-panel-bd">
          </div>
        </div>

      </div>

      <div class="am-u-sm-12 am-u-md-10 am-u-md-pull-1">

        <form class="am-form am-foprm-horizontal">
          <input type="hidden" id="hidn_course_id" value="" />

          <div class="am-g am-hide" id="div_upload">
            <div class=" am-u-sm-10 am-u-sm-centered">
              <div class="am-panel am-panel-default">
                <div class="am-panel-hd am-cf" data-am-collapse="{target: '#collapse-panel-upload'}">上传附件<span class="am-icon-chevron-down am-fr" ></span></div>
                <div class="am-panel-bd am-collapse am-in" id="collapse-panel-upload">

                  <div class="am-form-group am-g">
                    <label class="am-u-sm-3 am-form-label">选择</label>
                    <div class="am-u-sm-9">
                      <input type="file" id="file_attach" name="file_attach" style="width: 500px;" />
                    </div>
                  </div>
                  <div class="am-form-group am-g">
                    <label class="am-u-sm-3 am-form-label">文件名称</label>
                    <div class="am-u-sm-9">
                      <input type="text" id="txt_display" placeholder="文件名称（不要忘记填写扩展名）"/>
                    </div>
                  </div>

                  <div class="am-form-group am-g">
                    <label class="am-u-sm-3 am-form-label">&nbsp;</label>
                    <div class="am-u-sm-9">
                      <button type="button" id="btn_upload" class="am-btn am-btn-primary">上传</button>
                    </div>
                  </div>

                  <div id="div_pb_bg_upload" class="am-form-group am-hide">
                    <ul class="admin-content-file">
                      <li style="list-style-type:none;">
                        <div class="am-progress am-progress-striped am-progress-sm am-active">
                          <div id="div_pb_fg_upload" class="am-progress-bar am-progress-bar-success" style="width: 0%">&nbsp;</div>
                        </div>
                      </li>
                    </ul>
                  </div>

                  <div class="am-g error-log am-hide">
                    <div class="am-u-sm-12 am-u-sm-centered">
                      <pre id="pre_upload" class="am-pre-scrollable">
                      </pre>
                    </div>
                  </div>

                </div>
              </div>
            </div>
          </div>

          <hr/>

          <div class="am-g" id="divAttach">
            <div class="am-u-sm-10 am-u-sm-centered">
              <table class="am-table am-table-striped am-table-hover table-main" id="tabAttach">
                <thead>
                <tr>
                  <th class="am-text-center">文件名</th>
                  <th class="am-text-center">创建时间</th>
                  <th class="am-text-center">下载</th>
                  <th class="am-text-center">删除</th>
                </tr>
                </thead>
                <tbody>
                </tbody>
              </table>

              <div class="am-form-group">
                <div class="am-u-sm-12">
                  <div id="div_msg_panel" class="am-panel am-panel-default" style="display: none;">
                    <div id="div_msg" class="am-panel-bd" style="font-weight: bold;">&nbsp;</div>
                  </div>
                </div>
              </div>
            </div>
          </div>

        </form>
      </div>

    </div>
  </div>
    <!-- content end -->

</div>

<footer>
  <hr>
  <p class="am-padding-left" id="footer_p">&nbsp;</p>
</footer>

</body>
</html>
